<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<base href="<%=basePath%>">

<%@taglib uri="/struts-tags"  prefix="s" %>

<script type="text/javascript">
function testConfirmMsg(url, data){
	alertMsg.confirm("您修改的资料未保存，请选择保存或取消！", {
		okCall: function(){
			$.post(url, data, DWZ.ajaxDone, "json");
		}
	});
}
</script>


<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
		    <li><input type="checkbox" class="checkboxCtrl" group="ids" />全选</li>
		    <li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" postType="string" href="user_delete.action" class="delete"><span>删除</span></a></li>
			<li><a class="add" href="user_addInput.jsp" target="navTab"><span>添加</span></a></li>
			<li><a class="edit" href="user_updateInput.action?id={uid}" target="navTab"><span>修改</span></a></li>
			<li class="line">line</li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="150">
		<thead>
			<tr> 
                <th width="50">选择</th>
				<th width="150">序号</th>
				<th width="150">客户名</th>
				<th width="150">真实姓名</th>
				<th width="150">联系方式</th>
				<th width="">详细地址</th>
				<th width="150">公司名称</th>
				</tr>
		</thead>
		<tbody>
		
   		<tr target="uid" rel="${user.id}">
   		    <td><input type="checkbox" name="ids" value="${user.id}" /></td>
	        <td>${user.id}</td>
	        <td>${user.username}</td>
	        <td>${user.realname}</td>
	        <td>${user.telephone}</td>
	        <td>${user.address}</td>
	        <td>${user.companyname}</td>
    	    </tr>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20">20</option>
				<option value="10">10</option>
				<option value="30">30</option>
				<option value="500">50</option>
				<option value="100">100</option>
			</select>
			<span>条，共${pager.totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="${pager.totalCount}" numPerPage="${pager.everyPage}" pageNumShown="10" currentPage="${pager.currentPage}"></div>

	</div>
	
</div>


